package com.itheima.dao;

import com.itheima.pojo.Member;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

@Mapper
public interface OrdersettingDao {
    //根据日期查询预约设置数据
    @Select("select * from t_ordersetting where orderDate = #{date}")
    OrderSetting findByDate(String date);

    //更新预约设置数据
    @Update("update t_ordersetting set reservations = reservations + 1 where orderDate = #{date}")
    void updent(String date);
}
